import 'dart:collection';

class CheckMessageModel {
  int? messageId;
  int? userId;
  String? nickname;
  String? userImg;
  int? grade;
  int? sex;
  String? message;
  String? status;
  String? messageTime;

  CheckMessageModel(
      {this.messageId,
      this.userId,
      this.nickname,
      this.userImg,
      this.grade,
      this.sex,
      this.message,
      this.status,
      this.messageTime});

  CheckMessageModel.fromJson(Map<String, dynamic> json) {
    messageId = json['messageId'];
    userId = json['userId'];
    nickname = json['nickname'];
    userImg = json['userImg'];
    grade = json['grade'];
    sex = json['sex'];
    message = json['message'];
    status = json['status'];
    messageTime = json['messageTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = HashMap();
    data['messageId'] = messageId;
    data['userId'] = userId;
    data['nickname'] = nickname;
    data['userImg'] = userImg;
    data['grade'] = grade;
    data['sex'] = sex;
    data['message'] = message;
    data['status'] = status;
    data['messageTime'] = messageTime;
    return data;
  }
}